package com.qf.dao;

import com.qf.pojo.Order;
import com.qf.pojo.OrderItem;

import java.sql.SQLException;

/**
 * @author Kuke
 * @date 2022/3/12
 */
public interface OrderDao {


    void insertOrder(Order order) throws SQLException;


    void insertOrderItem(OrderItem orderitem) throws SQLException;

    int update(Order order) throws SQLException;

    /**
     * 通过订单编号获取订单
     * @param orderNO
     * @return
     */
    Order selectOrderById(String orderNO) throws SQLException;

    /**
     * 订单数据访问接口:更新订单状态
     * @param order
     */
    void updatState(Order order) throws SQLException;
}
